﻿
Public Class OrderSearchRequest
    Implements IJosRequest(Of OrderSearchResponse)

    Property StartDate As Nullable(Of DateTime)
    Property EndDate As Nullable(Of DateTime)
    Property OrderState As String
    Property Page As Nullable(Of Long)
    Property PageSize As Nullable(Of Long)
    Property OptionalFields As String

#Region "IJosRequest"

    Public Function GetApiName() As String Implements IJosRequest(Of OrderSearchResponse).GetApiName
        Return "360buy.order.search"
    End Function

    Public Function GetParameters() As System.Collections.Generic.IDictionary(Of String, String) Implements IJosRequest(Of OrderSearchResponse).GetParameters
        Dim parameters As New JosDictionary
        parameters.Add("end_date", EndDate)
        parameters.Add("optional_fields", OptionalFields)
        parameters.Add("order_state", OrderState)
        parameters.Add("page", Page)
        parameters.Add("page_size", PageSize)
        parameters.Add("start_date", StartDate)
        Return parameters
    End Function

    Public Sub Validate() Implements IJosRequest(Of OrderSearchResponse).Validate

    End Sub

#End Region

End Class
